package com.csdig.cms.dao;

import java.util.List;

import com.csdig.cms.model.Content;
import com.csdig.cms.model.ext.ContentExt;
import com.csdig.db.model.Pagination;


public interface ContentDAO {


    public void add(Content vo) throws Exception;

    public void update(Content vo) throws Exception;

    public void delete(Integer contentId) throws Exception;

    public Content findById(java.lang.Integer id) throws Exception;

    public List<Content> listAll() throws Exception;

    public Pagination<Content> findByCondition(Content vo, int pageNo, int pageSize)throws Exception;
    
    public Pagination<Content> findByCondition(List<Integer> channelIds, int pageNo, int pageSize)throws Exception;
    
    public List<Content> findByCondition(Content bean)throws Exception;
    
    public List<Content> findByCondition(String[] fieldNames,Object[] values)throws Exception;

	public List<ContentExt> findListForTag(Integer channelId, int first, int count, String orderBy)throws Exception;

	public Pagination<ContentExt> findPagForTag(Integer channelId, int pageNo, int defCount, String orderBy)throws Exception;
    
}
